package com.ai.service.made;

import com.ai.common.CommonResponse;
import com.ai.entity.alarm.AlarmAdditionalParameter;
import com.ai.entity.alarm.DefectParam;
import io.swagger.models.auth.In;

import java.util.HashMap;
import java.util.List;

/**
 * @Author：xiaosheng
 * @Date：2024/5/31 15:25
 */
public interface DefectParamService {


    /**
     * 添加
     *
     * @param defectParam
     * @return
     */
    CommonResponse insert(DefectParam defectParam);

    List<DefectParam> selectByAlarmAdditionId(Integer id);

    /**
     * 获取各端面的缺陷索引位置
     * @param id 缺陷信息id
     * @return k faceType v indexList
     */
    HashMap<String, List<Integer>> getDefectIndexMap(Integer id);


    /**
     * 获取各端面缺陷类型
     * @param alarmAdditionId 缺陷信息id
     * @return 革面缺陷类型
     */
    HashMap<String,List<String>> getDefectTypeMap(Integer alarmAdditionId );
}
